function p = getPpatterns( X )
global P;

p = X(1:P,:);

end

